<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<ui:composition 
xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:s="http://jboss.org/seam/faces"
	xmlns:p="http://primefaces.org/ui" 
template="/_template.xhtml">
	<ui:define name="corpo">

		<h2>Login</h2>

		<fieldset>
			<h:form >
			<p:messages></p:messages>
			<s:validateForm validatorId="validalogin"></s:validateForm>
			
					<h:outputLabel value="Login: " for="login"></h:outputLabel>
					<h:inputText value="#{loginBean.usuario.login}" id="login"></h:inputText>

					<h:outputLabel value="Senha: " for="senha"></h:outputLabel>
					<h:inputSecret value="#{loginBean.usuario.senha}" id="senha"></h:inputSecret>
					
					
					<h:commandButton value="Efetuar Login"	
						action="#{loginBean.efetuaLogin}"></h:commandButton>
			</h:form>
		</fieldset>
	</ui:define>
</ui:composition>